package com.epam.facebook_client.content.contract;

import android.net.Uri;
import android.provider.BaseColumns;

public class AppContract {

	public static final String AUTHORITY = "com.epam.facebook_client.content.FacebookProvider";

	public static final class FriendsColumns implements BaseColumns {

		public static final String CONTENT_PATH = "friends";

		public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + CONTENT_PATH);

		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/" + CONTENT_PATH;
		public static final String CONTENT_ITEM_TYPE  = "vnd.android.cursor.item/" + CONTENT_PATH;

		public static final String NAME = "NAME";
		public static final String PICTURE = "PICTURE";
		public static final String BIRTHDAY = "BIRTHDAY";
		public static final String GENDER = "GENDER";
		public static final String BIO = "BIO";
		public static final String SORT_ORDER_DEFAULT = NAME + " ASC";
	}

	public static final class FeedColumns implements BaseColumns {

		public static final String CONTENT_PATH = "feeds";
		
		public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + CONTENT_PATH);

		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/" + CONTENT_PATH;
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/" + CONTENT_PATH;

		public static final String FEED_ID = "feed_id";
		public static final String NAME = "name";
		public static final String STORY = "story";
		public static final String PICTURE = "picture";
		public static final String DESCRIPTION = "description";
		public static final String MESSAGE = "message";
		public static final String TYPE = "type";
		public static final String LINK = "link";
		public static final String CREATE_TIME = "create_time";
		public static final String SORT_ORDER_DEFAULT = CREATE_TIME + " DESC";
	}
	
	public static final class AlbumColumns implements BaseColumns {
		
		public static final String CONTENT_PATH = "albums";
		
		public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + CONTENT_PATH);
		
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/" + CONTENT_PATH;
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/" + CONTENT_PATH;
		
		public static final String NAME = "name";
		public static final String COVER = "cover";
		public static final String COUNT = "count";
		public static final String USER_ID = "user_id";
		public static final String SORT_ORDER_DEFAULT = NAME + " DESC";
	}
	
	public static final class PhotosColumns implements BaseColumns {
		
		public static final String CONTENT_PATH = "photos";
		
		public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/" + CONTENT_PATH);
		
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/" + CONTENT_PATH;
		public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/" + CONTENT_PATH;
		
		public final static String PICTURE = "picture";
		public final static String SOURCE = "source";
		public final static String TIME = "updated_time";
		public final static String ALBUM_ID = "album_id";
		public static final String SORT_ORDER_DEFAULT = _ID + " DESC";
	}

}
